package com.java.base.jvm;

public class EscapeObject {


    //-Xmx8m -Xlog:gc*
    public static void main(String[] args) {
        for (int i = 0; i < 10000000; i++) {
            notEscape();
//            escape();
        }
    }



    public static void notEscape() {
        new Object();
    }
    public static Object escape() {
       return new Object();
    }

}
